package com.dykj.fireFighting.web.service.impl;

import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.common.core.utils.DateUtil;
import com.dykj.fireFighting.web.mapper.DevHisSsMapper;
import com.dykj.fireFighting.web.model.report.DevHisSs;
import com.dykj.fireFighting.web.service.IDevHisSsService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import javax.annotation.Resources;
import java.util.List;
import java.util.Map;

/**
 * 盛善运行记录
 *
 * @Author JacksonTu
 * @Date  2021-11-30 10:08:44
 */

@Service
@Transactional(rollbackFor = Exception.class)
public class DevHisSsServiceImpl  implements IDevHisSsService {

    @Autowired
    private DevHisSsMapper devHisSsMapper;

    @Override
    public int insertDevHisSs(DevHisSs devHisSs) {
        String tableName="dev_his_ss_"+ DateUtil.getYearWeek();
        return devHisSsMapper.insertDevHisSs(tableName,devHisSs);
    }
}
